home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / KlingonBGApp.sit / Klingon BG App / Source / main.h < prev    next >
Text File  |  1997-06-28  |  930b  |  53 lines

  1. // Source code for Klingon Clock.   Copyright (C) 1996-1997
  2. // Charles H. Hemstreet IV
  3. //
  4. // Started at MacHack 1996
  5. // Completed at MacHack 1997
  6. //
  7. // Best thanks to:
  8. // My wife Regie, son Chad and baby
  9. // Other thanks to Elden Wood and Bob Clark
  10. //
  11. // This code is distributed "as-is" and implies no warranty or guarantee.
  12.  
  13.  
  14. #ifndef __MAIN__
  15. #define __MAIN__
  16.  
  17. #ifndef __SOUND__
  18. #include <Sound.h>
  19. #endif
  20.  
  21. #ifndef __INIT__
  22. #include "init.h"
  23. #endif
  24.  
  25. #ifndef __MAINUTIL__
  26. #include "mainUtil.h"
  27. #endif
  28.  
  29. #ifndef __EVENTROUTINES__
  30. #include "EventRoutines.h"
  31. #endif
  32.  
  33.  
  34. #define kNumberSounds 13 // this is also in SoundUtils.h !!
  35.  
  36.  
  37. // PROTOTYPES
  38. void InitApp(void);
  39. void RunApp(void);
  40. void QuitApp(void);
  41.  
  42. // external prototypes
  43.  
  44.  
  45. // necessary snd globals
  46. Ptr                    gTheSoundData[kNumberSounds];
  47. SndChannelPtr        gSndChannel;
  48. Boolean                gChannelOpen;
  49. long                gSleepTicks = 600;   // about 10 seconds
  50. Boolean                gExitNow;
  51.  
  52. #endif  //__MAIN__
  53.